<?php if (!defined('THINK_PATH')) exit();?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo ($SHOP_NAME); ?>团购管理系统</title>
<link rel="stylesheet" type="text/css" href="__TMPL__ThemeFiles/Css/style.css" />
<script type="text/javascript" src="__TMPL__ThemeFiles/Js/Base.js"></script>
<script type="text/javascript" src="__TMPL__ThemeFiles/Js/prototype.js"></script>
<script type="text/javascript" src="__TMPL__ThemeFiles/Js/mootools.js"></script>
<script type="text/javascript" src="__TMPL__ThemeFiles/Js/Ajax/ThinkAjax.js"></script>
<script type="text/javascript" src="__TMPL__ThemeFiles/Js/common.js"></script>
<script type="text/javascript" src="__TMPL__ThemeFiles/Js/Util/ImageLoader.js"></script>
<script type="text/javascript" src="__TMPL__ThemeFiles/Js/kindeditor/kindeditor.js"></script>
<script language="JavaScript">
<!--
//指定当前组模块URL地址 
var URL = '__URL__';
var ROOT_PATH = '__ROOT__';
var APP	 =	 '__APP__';
var PUBLIC = '__TMPL__ThemeFiles';
ThinkAjax.image = [	 '__TMPL__ThemeFiles/Images/loading2.gif', '__TMPL__ThemeFiles/Images/ok.gif','__TMPL__ThemeFiles/Images/update.gif' ]
ImageLoader.add("__TMPL__ThemeFiles/Images/bgline.gif","__TMPL__ThemeFiles/Images/bgcolor.gif","__TMPL__ThemeFiles/Images/titlebg.gif");
ImageLoader.startLoad();
var VAR_MODULE = '<?php echo c('VAR_MODULE');?>';
var VAR_ACTION = '<?php echo c('VAR_ACTION');?>';
var CURR_MODULE = '<?php echo ($module_name); ?>';
//-->
</script>
<script language="JavaScript">
//定义JS中使用的语言变量
var VIEW = '<?php echo (L("VIEW")); ?>';
var CONFIRM_DELETE = '<?php echo (L("CONFIRM_DELETE")); ?>';
var CONFIRM_DELETE_IMAGE = '<?php echo (L("CONFIRM_DELETE_IMAGE")); ?>';
var NO_SELECT = '<?php echo (L("NO_SELECT")); ?>';
var CHOOSE_RECYCLE_ITEM = '<?php echo (L("CHOOSE_RECYCLE_ITEM")); ?>';
var SELECT_EDIT_ITEM = '<?php echo (L("SELECT_EDIT_ITEM")); ?>';
var SELECT_DEL_ITEM	=	'<?php echo (L("SELECT_DEL_ITEM")); ?>';
var CONFIRM_DELETE_FILE = '<?php echo (L("CONFIRM_DELETE_FILE")); ?>';
var CONFIRM_FOREVER_DELETE = '<?php echo (L("CONFIRM_FOREVER_DELETE")); ?>';
var CONFIRM_DELETE_USER_DATA = '<?php echo (L("CONFIRM_DELETE_USER_DATA")); ?>';
var CONFIRM_RESTORE = '<?php echo (L("CONFIRM_RESTORE")); ?>';
var ATTR_PRICE	=	'<?php echo L("ATTR_PRICE");?>';
var ATTR_STOCK	=	'<?php echo L("ATTR_STOCK");?>';
</script>
</head>

<body onload="loadBar(0)">

<div id="loader" ><?php echo (L("PAGE_LOADING")); ?></div>

<div id="main" class="main" >

<script type="text/javascript">
	function confirm_redirect(msg, url)
	{
	  if (confirm(msg))
	  {
	    location.href=url;
	  }
	}
</script>
<div class="content" >
<div class="title">会员整合</div>
<div class="title" >
    使用方法：<br>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1:如果需要整合其他的用户系统，可以安装适当的版本号插件进行整合。<br>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2:如果需要更换整合的用户系统，直接安装目标插件即可完成整合，同时自动卸载上一次整合插件。<br>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3:如果不需要整合任何用户系统，请选择安装 fanwe 插件，即可卸载所有的整合插件。<br>
</div>

<div class="list" >
<table id="list" class="list" cellpadding=0 cellspacing=0>
  <tr class="row">
    <th class="center" width = "30%">名称</th>
    <th width = "20%">版本</th>
    <th width = "20%">作者</th>
    <th width = "30%">操作</th>
  </tr>
	<?php if(is_array($modules)): $i = 0; $__LIST__ = $modules;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$module): ++$i;$mod = ($i % 2 )?><tr>
			<td><?php echo ($module["name"]); ?></td>
			<td><?php echo ($module["version"]); ?></td>
			<td><?php echo ($module["author"]); ?></td>
			<td>
			  <?php if($module["installed"] == 1): ?><a href="__APP__?m=Integrate&a=setup&code=<?php echo ($module["code"]); ?>">设置</a><?php if($allow_set_points == 1): ?>&nbsp;<a href="__APP__?m=Integrate&a=points_set&code=<?php echo ($module["code"]); ?>">&nbsp;&nbsp;&nbsp;积分兑换设置</a><?php endif; ?>
		      <?php else: ?>
		      		<a <?php if($module["code"] != 'fanwe' ): ?>href="javascript:confirm_redirect('您确定要安装该会员数据整合插件吗？', '__APP__?m=Integrate&a=install&code=<?php echo ($module["code"]); ?>')"<?php else: ?>href="__APP__?m=Integrate&a=install&code=<?php echo ($module["code"]); ?>"<?php endif; ?>>安装</a><?php endif; ?>
			</td>
		</tr><?php endforeach; endif; else: echo "" ;endif; ?>  
</table> 
</div>
</div>